<form id="edit-form" class="form-horizontal" role="form" data-toggle="validator" method="POST" action="">

    <div class="form-group">
        <label class="control-label col-xs-12 col-sm-2">{:__('User_id')}:</label>
        <div class="col-xs-12 col-sm-8">
            <input id="c-user_id" data-rule="required" data-source="user/user/index" data-field="nickname" class="form-control selectpage" name="row[user_id]" type="text" value="{$row.user_id|htmlentities}">
        </div>
    </div>
    <div class="form-group">
        <label class="control-label col-xs-12 col-sm-2">{:__('Goods_id')}:</label>
        <div class="col-xs-12 col-sm-8">
            <input id="c-goods_id" data-rule="required" data-source="wanlshop/goods/index" data-field="title" class="form-control selectpage" name="row[goods_id]" type="text" value="{$row.goods_id|htmlentities}">
        </div>
    </div>
    <div class="form-group">
        <label class="control-label col-xs-12 col-sm-2">{:__('Shop_id')}:</label>`
        <div class="col-xs-12 col-sm-8">
            <input id="c-shop_id" data-rule="required" data-source="wanlshop/shop/index" data-field="shopname" class="form-control selectpage" name="row[shop_id]" type="text" value="{$row.shop_id|htmlentities}">
        </div>
    </div>
    <div class="form-group">
        <label class="control-label col-xs-12 col-sm-2">{:__('Amount_id')}:</label>
        <div class="col-xs-12 col-sm-8">
            <input id="c-amount_id" data-rule="required" class="form-control" name="row[amount_id]" type="text" value="{$row.amount_id|htmlentities}">
        </div>
    </div>
    <div class="form-group">
        <label class="control-label col-xs-12 col-sm-2">{:__('Is_invest')}:</label>
        <div class="col-xs-12 col-sm-8">

            <select  id="c-is_invest" data-rule="required" class="form-control selectpicker" name="row[is_invest]">
                {foreach name="isInvestList" item="vo"}
                <option value="{$key}" {in name="key" value="$row.is_invest"}selected{/in}>{$vo}</option>
                {/foreach}
            </select>

        </div>
    </div>
    <div class="form-group">
        <label class="control-label col-xs-12 col-sm-2">{:__('Price')}:</label>
        <div class="col-xs-12 col-sm-8">
            <input id="c-price" data-rule="required" class="form-control" step="0.01" name="row[price]" type="number" value="{$row.price|htmlentities}">
        </div>
    </div>
    <div class="form-group">
        <label class="control-label col-xs-12 col-sm-2">{:__('Status')}:</label>
        <div class="col-xs-12 col-sm-8">

            <div class="radio">
                {foreach name="statusList" item="vo"}
                <label for="row[status]-{$key}"><input id="row[status]-{$key}" name="row[status]" type="radio" value="{$key}" {in name="key" value="$row.status"}checked{/in} /> {$vo}</label>
                {/foreach}
            </div>

        </div>
    </div>
    <div class="form-group">
        <label class="control-label col-xs-12 col-sm-2">{:__('Shop_user_id')}:</label>
        <div class="col-xs-12 col-sm-8">
            <input id="c-shop_user_id" data-rule="required" data-source="user/user/index" data-field="username" class="form-control selectpage" name="row[shop_user_id]" type="text" value="{$row.shop_user_id|htmlentities}">
        </div>
    </div>
    <div class="form-group">
        <label class="control-label col-xs-12 col-sm-2">{:__('Platform_proportion')}:</label>
        <div class="col-xs-12 col-sm-8">
            <input id="c-platform_proportion" data-rule="required" class="form-control" step="0.01" name="row[platform_proportion]" type="number" value="{$row.platform_proportion|htmlentities}">
        </div>
    </div>
    <div class="form-group">
        <label class="control-label col-xs-12 col-sm-2">{:__('Investment_proportion')}:</label>
        <div class="col-xs-12 col-sm-8">
            <input id="c-investment_proportion" data-rule="required" class="form-control" step="0.01" name="row[investment_proportion]" type="number" value="{$row.investment_proportion|htmlentities}">
        </div>
    </div>
    <div class="form-group layer-footer">
        <label class="control-label col-xs-12 col-sm-2"></label>
        <div class="col-xs-12 col-sm-8">
            <button type="submit" class="btn btn-primary btn-embossed disabled">{:__('OK')}</button>
        </div>
    </div>
</form>
